package com.neuedu.yyzx.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName file_info
 */
@TableName(value = "file_info")
@Data
public class FileInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 原始文件名
     */
    @TableField(value = "origin_name")
    private String originName;

    /**
     * 硬盘中的存储路径
     */
    @TableField(value = "path")
    private String path;

    /**
     * 扩展名
     */
    @TableField(value = "ext")
    private String ext;

    /**
     * 存储大小
     */
    @TableField(value = "size")
    private Long size;

    /**
     * 上传时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 上传的用户
     */
    @TableField(value = "create_by")
    private String createBy;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}